﻿@{
    Layout = "";
}

<!DOCTYPE html>

<html>
<head>
    <title>点检项目信息Routine check item information</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <!-- VENDOR CSS -->
    <link rel="stylesheet" type="text/css" href="~/Content/vendor/jquery/jquery-ui.css">
    <link rel="stylesheet" type="text/css" href="~/Content/vendor/bootstrap/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="~/Content/vendor/bootstrap/bootstrap-datetimepicker.css">
    <link rel="stylesheet" type="text/css" href="~/Content/vendor/font-awesome/font-awesome.css">
    <link rel="stylesheet" type="text/css" href="~/Content/vendor/toastr/toastr.css">
    <link rel="stylesheet" type="text/css" href="~/Content/vendor/klorofil/main.css">
    <link rel="stylesheet" type="text/css" href="~/Content/aztech-style.css">

    <script type="text/javascript" src="~/Scripts/vendor/modernizr-2.6.2.js"></script>
</head>
<body>
    <div class="panel">
        <div class="panel-body">
            <form id="itemForm" class="form-horizontal">
                <div id="itemName" class="form-group">
                    <label for="itemName" class="col-sm-2 control-label">点检项目内容Routine check item content</label>
                    <div class="col-sm-5">
                        <input type="text" class="form-control" placeholder="请填写点检详细Please fill in the spot check details" v-model="item.Name" />
                    </div>
                </div>
                <div id="equipmentType" class="form-group">
                    <label for="equipmentType" class="col-sm-2 control-label">设备类型Equipment type</label>
                    <div class="col-sm-5">
                        <select class="form-control" v-model="item.EquipmentTypeID">
                            <option v-for="(value, key, idx) in typeDictionary" v-bind:value="value">{{key}}</option>
                        </select>
                    </div>
                </div>
                <div id="isDisable" class="form-group">
                    <label for="isDisable" class="col-sm-2 control-label">是否禁用Whether Disable?</label>
                    <div class="col-sm-5">
                        <select class="form-control" v-model="item.IsDisable">
                            <option v-for="(value, key, idx) in isDisableDictionary" v-bind:value="value">{{key}}</option>
                        </select>
                    </div>
                </div>
                <div id="isValue" class="form-group">
                    <label for="isValue" class="col-sm-2 control-label">是否需要填值whether to fill in value?</label>
                    <div class="col-sm-5">
                        <select class="form-control" v-model="item.IsValue">
                            <option v-for="(value, key, idx) in isDisableDictionary" v-bind:value="value">{{key}}</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <input type="text" v-model="item.ID" hidden />
                        <button v-if="isNewItem" class="btn btn-default" v-on:click="SaveItem($event)">保存preservation</button>
                        <button v-if="!isNewItem" class="btn btn-default" v-on:click="UpdateItem($event)">更新renew</button>
                    </div>
                </div>
            </form>
        </div>

    </div>


    <script type="text/javascript" src="~/Scripts/vendor/jquery/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="~/Scripts/vendor/jquery/jquery.cookie.min.js"></script>
    <script type="text/javascript" src="~/Scripts/vendor/jquery/jquery.slimscroll.min.js"></script>
    <script type="text/javascript" src="~/Scripts/vendor/bootstrap/bootstrap.min.js"></script>
    <script type="text/javascript" src="~/Scripts/vendor/bootstrap/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="~/Scripts/vendor/toastr/toastr.min.js"></script>
    <script type="text/javascript" src="~/Scripts/vendor/klorofil/klorofil-common.js"></script>
    <script type="text/javascript" src="~/Scripts/vendor/respond.min.js"></script>
    <script type="text/javascript" src="~/Scripts/vendor/vue/vue.min.js"></script>
    <script type="text/javascript" src="~/Scripts/aztech-global.js?v=@DateTime.Now.ToFileTimeUtc()"></script>
    <script type="text/javascript" src="~/Scripts/aztech-script.js?v=@DateTime.Now.ToFileTimeUtc()"></script>
    <script type="text/javascript" src="~/Scripts/pageJs/RoutineInspection/ItemDetail.js?v=@DateTime.Now.ToFileTimeUtc()"></script>
</body>
</html>
